----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  D:\Vicard\VV\re\inprogress\BRV\results\Table_A17.log
  log type:  text
 opened on:  29 Sep 2017, 21:34:02

. 
. foreach def in ele2 ele3 {
  2.         use "$Output\dataset_brv_fe", clear
  3.         global condition  "entry_ele!=1994 & entry_ele!=1995"
  4.         gen age_ele             = age_`def'
  5.         gen diff_ele            = diff*age_ele
  6.         gen age_ele10           = age_ele
  7.         replace age_ele10       = 10 if age_ele>9
  8.         tab age_ele10, gen(ele_)
  9.         forvalues x = 1(1)10{
 10.                 g diff_ele_`x'  = diff * ele_`x' 
 11.                 }
 12.         *
.         foreach var in diff {
 13. 
.         eststo: reg dprior `var'        age_ele                    if $condition, r cluster(i)
 14.         eststo: reg dprior `var' age_ele `var'_ele if $condition, r cluster(i)
 15.         eststo: reg dprior `var'_ele_* ele_*       if $condition, r cluster(i)
 16. 
.         }
 17. }
(3,385,328 missing values generated)
(194,559 real changes made)

  age_ele10 |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |  2,310,300       32.65       32.65
          2 |  1,139,481       16.10       48.76
          3 |    942,317       13.32       62.08
          4 |    685,261        9.69       71.76
          5 |    512,645        7.25       79.01
          6 |    395,482        5.59       84.60
          7 |    309,685        4.38       88.97
          8 |    242,529        3.43       92.40
          9 |    191,917        2.71       95.11
         10 |    345,760        4.89      100.00
------------+-----------------------------------
      Total |  7,075,377      100.00
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)

Linear regression                               Number of obs     =  1,854,141
                                                F(2, 45452)       =    2851.91
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0362
                                                Root MSE          =     1.1778

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0643836   .0010718    60.07   0.000     .0622829    .0664843
     age_ele |  -.0299236   .0006868   -43.57   0.000    -.0312698   -.0285774
       _cons |    .142868   .0025881    55.20   0.000     .1377952    .1479408
------------------------------------------------------------------------------
(est1 stored)

Linear regression                               Number of obs     =  1,854,141
                                                F(3, 45452)       =    2104.62
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0363
                                                Root MSE          =     1.1777

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0727483    .001408    51.67   0.000     .0699885     .075508
     age_ele |  -.0301562   .0006808   -44.29   0.000    -.0314907   -.0288217
    diff_ele |  -.0024066   .0003658    -6.58   0.000    -.0031235   -.0016897
       _cons |   .1434527   .0025753    55.70   0.000     .1384051    .1485002
------------------------------------------------------------------------------
(est2 stored)
note: diff_ele_1 omitted because of collinearity
note: ele_1 omitted because of collinearity
note: ele_10 omitted because of collinearity

Linear regression                               Number of obs     =  1,854,141
                                                F(17, 45452)      =     475.62
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0378
                                                Root MSE          =     1.1768

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  diff_ele_1 |          0  (omitted)
  diff_ele_2 |    .068408   .0011041    61.96   0.000      .066244    .0705721
  diff_ele_3 |   .0646823   .0011827    54.69   0.000     .0623642    .0670004
  diff_ele_4 |   .0614572   .0016016    38.37   0.000      .058318    .0645964
  diff_ele_5 |   .0594045   .0020588    28.85   0.000     .0553692    .0634398
  diff_ele_6 |   .0600708   .0018569    32.35   0.000     .0564314    .0637103
  diff_ele_7 |   .0567612   .0024361    23.30   0.000     .0519865    .0615359
  diff_ele_8 |   .0560842   .0029381    19.09   0.000     .0503254     .061843
  diff_ele_9 |   .0544026   .0042359    12.84   0.000     .0461003     .062705
 diff_ele_10 |   .0471969    .006876     6.86   0.000     .0337198    .0606739
       ele_1 |          0  (omitted)
       ele_2 |   .1861953   .0111648    16.68   0.000     .1643121    .2080785
       ele_3 |   .0585247   .0112021     5.22   0.000     .0365685     .080481
       ele_4 |    .037471   .0112314     3.34   0.001     .0154573    .0594847
       ele_5 |   .0250124    .011506     2.17   0.030     .0024604    .0475645
       ele_6 |    .023333   .0118227     1.97   0.048     .0001603    .0465058
       ele_7 |   .0241922   .0118434     2.04   0.041     .0009789    .0474055
       ele_8 |   .0162807   .0116356     1.40   0.162    -.0065253    .0390867
       ele_9 |   .0245945    .014253     1.73   0.084    -.0033417    .0525307
      ele_10 |          0  (omitted)
       _cons |  -.0587321   .0110108    -5.33   0.000    -.0803135   -.0371507
------------------------------------------------------------------------------
(est3 stored)
(3,385,328 missing values generated)
(194,559 real changes made)

  age_ele10 |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |  1,917,559       27.10       27.10
          2 |  1,176,717       16.63       43.73
          3 |  1,025,176       14.49       58.22
          4 |    763,521       10.79       69.01
          5 |    577,351        8.16       77.17
          6 |    445,255        6.29       83.47
          7 |    345,668        4.89       88.35
          8 |    266,717        3.77       92.12
          9 |    206,018        2.91       95.03
         10 |    351,395        4.97      100.00
------------+-----------------------------------
      Total |  7,075,377      100.00
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)
(3,385,328 missing values generated)

Linear regression                               Number of obs     =  1,854,141
                                                F(2, 45452)       =    2761.92
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0360
                                                Root MSE          =     1.1779

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0644088   .0010721    60.08   0.000     .0623075    .0665102
     age_ele |  -.0288483     .00069   -41.81   0.000    -.0302007   -.0274958
       _cons |   .1414447   .0026495    53.38   0.000     .1362516    .1466378
------------------------------------------------------------------------------
(est4 stored)

Linear regression                               Number of obs     =  1,854,141
                                                F(3, 45452)       =    2017.35
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0362
                                                Root MSE          =     1.1778

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0718974   .0014962    48.05   0.000     .0689648    .0748299
     age_ele |  -.0290439   .0006875   -42.25   0.000    -.0303913   -.0276965
    diff_ele |  -.0020874   .0003969    -5.26   0.000    -.0028653   -.0013095
       _cons |   .1419628   .0026425    53.72   0.000     .1367835     .147142
------------------------------------------------------------------------------
(est5 stored)
note: diff_ele_1 omitted because of collinearity
note: ele_1 omitted because of collinearity
note: ele_9 omitted because of collinearity

Linear regression                               Number of obs     =  1,854,141
                                                F(17, 45452)      =     447.54
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0373
                                                Root MSE          =     1.1771

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  diff_ele_1 |          0  (omitted)
  diff_ele_2 |   .0679704   .0011115    61.15   0.000     .0657919     .070149
  diff_ele_3 |   .0648821   .0012232    53.04   0.000     .0624846    .0672796
  diff_ele_4 |   .0628898   .0015908    39.53   0.000     .0597717    .0660079
  diff_ele_5 |   .0609969   .0020496    29.76   0.000     .0569797    .0650141
  diff_ele_6 |   .0607539   .0017512    34.69   0.000     .0573215    .0641864
  diff_ele_7 |   .0580535   .0025564    22.71   0.000     .0530429     .063064
  diff_ele_8 |    .056742   .0029789    19.05   0.000     .0509034    .0625806
  diff_ele_9 |   .0544026   .0042359    12.84   0.000     .0461003     .062705
 diff_ele_10 |   .0471969    .006876     6.86   0.000     .0337198    .0606739
       ele_1 |          0  (omitted)
       ele_2 |   .1615037   .0089991    17.95   0.000     .1438654     .179142
       ele_3 |   .0427364   .0087861     4.86   0.000     .0255155    .0599573
       ele_4 |   .0224135   .0088513     2.53   0.011     .0050649    .0397621
       ele_5 |   .0082739   .0088717     0.93   0.351    -.0091148    .0256626
       ele_6 |   .0032637   .0089839     0.36   0.716     -.014345    .0208724
       ele_7 |  -.0000125   .0091186    -0.00   0.999    -.0178852    .0178602
       ele_8 |  -.0062676   .0096298    -0.65   0.515    -.0251422     .012607
       ele_9 |          0  (omitted)
      ele_10 |  -.0245945    .014253    -1.73   0.084    -.0525307    .0033417
       _cons |  -.0341376   .0086596    -3.94   0.000    -.0511105   -.0171647
------------------------------------------------------------------------------
(est6 stored)

. 
. set linesize 250

. esttab, mtitles drop(_cons) b(%5.3f) se(%5.3f) compress r2 starlevels(c 0.1 b 0.05 a 0.01)  se 

----------------------------------------------------------------------------
                 (1)        (2)        (3)        (4)        (5)        (6) 
                est1       est2       est3       est4       est5       est6 
----------------------------------------------------------------------------
diff           0.064a     0.073a                0.064a     0.072a           
             (0.001)    (0.001)               (0.001)    (0.001)            

age_ele       -0.030a    -0.030a               -0.029a    -0.029a           
             (0.001)    (0.001)               (0.001)    (0.001)            

diff_ele                 -0.002a                          -0.002a           
                        (0.000)                          (0.000)            

diff_ele_1                           0.000                            0.000 
                                       (.)                              (.) 

diff_ele_2                           0.068a                           0.068a
                                   (0.001)                          (0.001) 

diff_ele_3                           0.065a                           0.065a
                                   (0.001)                          (0.001) 

diff_ele_4                           0.061a                           0.063a
                                   (0.002)                          (0.002) 

diff_ele_5                           0.059a                           0.061a
                                   (0.002)                          (0.002) 

diff_ele_6                           0.060a                           0.061a
                                   (0.002)                          (0.002) 

diff_ele_7                           0.057a                           0.058a
                                   (0.002)                          (0.003) 

diff_ele_8                           0.056a                           0.057a
                                   (0.003)                          (0.003) 

diff_ele_9                           0.054a                           0.054a
                                   (0.004)                          (0.004) 

diff_~e_10                           0.047a                           0.047a
                                   (0.007)                          (0.007) 

ele_1                                0.000                            0.000 
                                       (.)                              (.) 

ele_2                                0.186a                           0.162a
                                   (0.011)                          (0.009) 

ele_3                                0.059a                           0.043a
                                   (0.011)                          (0.009) 

ele_4                                0.037a                           0.022b
                                   (0.011)                          (0.009) 

ele_5                                0.025b                           0.008 
                                   (0.012)                          (0.009) 

ele_6                                0.023b                           0.003 
                                   (0.012)                          (0.009) 

ele_7                                0.024b                          -0.000 
                                   (0.012)                          (0.009) 

ele_8                                0.016                           -0.006 
                                   (0.012)                          (0.010) 

ele_9                                0.025c                           0.000 
                                   (0.014)                              (.) 

ele_10                               0.000                           -0.025c
                                       (.)                          (0.014) 
----------------------------------------------------------------------------
N            1854141    1854141    1854141    1854141    1854141    1854141 
R-sq           0.036      0.036      0.038      0.036      0.036      0.037 
----------------------------------------------------------------------------
Standard errors in parentheses
c p<0.1, b p<0.05, a p<0.01

. esttab, mtitles drop(_cons) b(%5.3f) se(%5.3f) r2  starlevels({$^c$} 0.1 {$^b$} 0.05 {$^a$} 0.01) se tex label  title() 

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{6}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}\\
                    &\multicolumn{1}{c}{est1}&\multicolumn{1}{c}{est2}&\multicolumn{1}{c}{est3}&\multicolumn{1}{c}{est4}&\multicolumn{1}{c}{est5}&\multicolumn{1}{c}{est6}\\
\hline
$\widehat{a}\_{ijkt}-\varepsilon^q\_{ijk,t-1}$&       0.064{$^a$}&       0.073{$^a$}&                  &       0.064{$^a$}&       0.072{$^a$}&                  \\
                    &     (0.001)      &     (0.001)      &                  &     (0.001)      &     (0.001)      &                  \\
[1em]
age\_ele             &      -0.030{$^a$}&      -0.030{$^a$}&                  &      -0.029{$^a$}&      -0.029{$^a$}&                  \\
                    &     (0.001)      &     (0.001)      &                  &     (0.001)      &     (0.001)      &                  \\
[1em]
diff\_ele            &                  &      -0.002{$^a$}&                  &                  &      -0.002{$^a$}&                  \\
                    &                  &     (0.000)      &                  &                  &     (0.000)      &                  \\
[1em]
diff\_ele\_1          &                  &                  &       0.000      &                  &                  &       0.000      \\
                    &                  &                  &         (.)      &                  &                  &         (.)      \\
[1em]
diff\_ele\_2          &                  &                  &       0.068{$^a$}&                  &                  &       0.068{$^a$}\\
                    &                  &                  &     (0.001)      &                  &                  &     (0.001)      \\
[1em]
diff\_ele\_3          &                  &                  &       0.065{$^a$}&                  &                  &       0.065{$^a$}\\
                    &                  &                  &     (0.001)      &                  &                  &     (0.001)      \\
[1em]
diff\_ele\_4          &                  &                  &       0.061{$^a$}&                  &                  &       0.063{$^a$}\\
                    &                  &                  &     (0.002)      &                  &                  &     (0.002)      \\
[1em]
diff\_ele\_5          &                  &                  &       0.059{$^a$}&                  &                  &       0.061{$^a$}\\
                    &                  &                  &     (0.002)      &                  &                  &     (0.002)      \\
[1em]
diff\_ele\_6          &                  &                  &       0.060{$^a$}&                  &                  &       0.061{$^a$}\\
                    &                  &                  &     (0.002)      &                  &                  &     (0.002)      \\
[1em]
diff\_ele\_7          &                  &                  &       0.057{$^a$}&                  &                  &       0.058{$^a$}\\
                    &                  &                  &     (0.002)      &                  &                  &     (0.003)      \\
[1em]
diff\_ele\_8          &                  &                  &       0.056{$^a$}&                  &                  &       0.057{$^a$}\\
                    &                  &                  &     (0.003)      &                  &                  &     (0.003)      \\
[1em]
diff\_ele\_9          &                  &                  &       0.054{$^a$}&                  &                  &       0.054{$^a$}\\
                    &                  &                  &     (0.004)      &                  &                  &     (0.004)      \\
[1em]
diff\_ele\_10         &                  &                  &       0.047{$^a$}&                  &                  &       0.047{$^a$}\\
                    &                  &                  &     (0.007)      &                  &                  &     (0.007)      \\
[1em]
age\_ele10==     1.0000&                  &                  &       0.000      &                  &                  &       0.000      \\
                    &                  &                  &         (.)      &                  &                  &         (.)      \\
[1em]
age\_ele10==     2.0000&                  &                  &       0.186{$^a$}&                  &                  &       0.162{$^a$}\\
                    &                  &                  &     (0.011)      &                  &                  &     (0.009)      \\
[1em]
age\_ele10==     3.0000&                  &                  &       0.059{$^a$}&                  &                  &       0.043{$^a$}\\
                    &                  &                  &     (0.011)      &                  &                  &     (0.009)      \\
[1em]
age\_ele10==     4.0000&                  &                  &       0.037{$^a$}&                  &                  &       0.022{$^b$}\\
                    &                  &                  &     (0.011)      &                  &                  &     (0.009)      \\
[1em]
age\_ele10==     5.0000&                  &                  &       0.025{$^b$}&                  &                  &       0.008      \\
                    &                  &                  &     (0.012)      &                  &                  &     (0.009)      \\
[1em]
age\_ele10==     6.0000&                  &                  &       0.023{$^b$}&                  &                  &       0.003      \\
                    &                  &                  &     (0.012)      &                  &                  &     (0.009)      \\
[1em]
age\_ele10==     7.0000&                  &                  &       0.024{$^b$}&                  &                  &      -0.000      \\
                    &                  &                  &     (0.012)      &                  &                  &     (0.009)      \\
[1em]
age\_ele10==     8.0000&                  &                  &       0.016      &                  &                  &      -0.006      \\
                    &                  &                  &     (0.012)      &                  &                  &     (0.010)      \\
[1em]
age\_ele10==     9.0000&                  &                  &       0.025{$^c$}&                  &                  &       0.000      \\
                    &                  &                  &     (0.014)      &                  &                  &         (.)      \\
[1em]
age\_ele10==    10.0000&                  &                  &       0.000      &                  &                  &      -0.025{$^c$}\\
                    &                  &                  &         (.)      &                  &                  &     (0.014)      \\
\hline
Observations        &     1854141      &     1854141      &     1854141      &     1854141      &     1854141      &     1854141      \\
\(R^{2}\)           &       0.036      &       0.036      &       0.038      &       0.036      &       0.036      &       0.037      \\
\hline\hline
\multicolumn{7}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{7}{l}{\footnotesize {$^c$} p<0.1, {$^b$} p<0.05, {$^a$} p<0.01}\\
\end{tabular}
}

. eststo clear

. 
. log close
      name:  <unnamed>
       log:  D:\Vicard\VV\re\inprogress\BRV\results\Table_A17.log
  log type:  text
 closed on:  29 Sep 2017, 21:34:41
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
